<?php
$test=array("a"=>123);
$test['b']=456;
while(current($test)){
	echo key($test);
	next($test);
}

